
export const getLabelByValue = function (list  , value ) {
  return list.filter(item => item.value == value)[0]?.label || ''
}
export const AUTH = [
  {
    value:0,
    label:"公有",
  },
  {
    value:1,
    label:"私有",
  }
]

export const STATUS = [
  {
    value:0,
    label:"正常",
  },
  {
    value:1,
    label:"禁用",
  }
]

export const COMPETITION_TYPE = [
  {
    value:0,
    label:"ACM",
  },
  {
    value:1,
    label:"IOI",
  }
]

export const COMPETITION_AUTH = [
  {
    value:0,
    label:"公开赛",
  },
  {
    value:1,
    label:"私有赛",
  }
]

export const COMPETITION_STATUS = [
  {
    value:0,
    label:"未开始",
  },
  {
    value:1,
    label:"进行中",
  },
  {
    value:2,
    label:"已结束",
  }
]

export const sys_normal_disable = [
  {
    value:0,
    label:"正常"
  },
  {
    value:1,
    label:"禁用"
  }
]
export const authList = [
  {
    value:0,
    label:"公开"
  },
  {
    value:1,
    label:"私有"
  },
]
